package top.continew.admin.sport.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import top.continew.admin.sport.model.resp.GradeRanking;
import top.continew.admin.sport.model.resp.ProjectEntryGradeResp;
import top.continew.admin.sport.model.resp.ProjectEntryResp;
import top.continew.starter.data.mybatis.plus.base.BaseMapper;
import top.continew.admin.sport.model.entity.ProjectEntryGradeDO;

import java.util.List;

/**
* 比赛成绩 Mapper
*
* @author xiahaike
* @since 2024/09/15 12:52
*/
public interface ProjectEntryGradeMapper extends BaseMapper<ProjectEntryGradeDO> {

    IPage<ProjectEntryGradeResp> myPage(@Param("page") IPage<Object> page,
                                        @Param(Constants.WRAPPER)  QueryWrapper<ProjectEntryGradeResp> queryWrapper,
                                        @Param("projectId") Long projectId);

    List<ProjectEntryResp> noGrade(Long projectId);

    List<GradeRanking> ranking();
}